package com.mall.service.impl;

import java.util.concurrent.ThreadFactory;

public class MyThreadPoolExcuter {

    private final class MyWorker implements Runnable {

        private ThreadFactory threadFactory;
        private Thread thread;
        private Runnable firstTask;

        public MyWorker(Runnable firstTask) {
            this.firstTask = firstTask;
//            this.thread = getThreadFactory().newThread(this);
        }

        @Override
        public void run() {
            firstTask.run();
        }
    }
}
